JSDigiClock script

Installation instrustions

Package includes jsdigiclock.js file and images. To setup the clock download package, unpack it and upload all of the files to your home directory. Place the applet anywhere on your page, where you want this clock to appear by putting the following code in your HTML source file:
<script src="jsdigiclock.js" language="javascript"></script>
<script>
setupClock(true,true,true)
</script>
The best way to do this is to open your HTML source file in any text editor like Notepad.exe, find a place in document where the clock will appear and cut'n'paste the above code there.
Note: clock script can be used only once on the page. 2 copies of the same script will cause variables name conflicts and it won't work

Customization

You are welcome to develop custom images to change outlook of the clock. Keep in mind that digits images named from 0.gif to 9.gif, separator image (sep.gif) and blank space.gif image all must have the same size. Am.gif and pm.gif images may have other but equal sizes.

setupClock(..) function have 3 parameters to customize clock outlook.
setupClock(mode24hours, showAMPM, showSeconds)
Use true or false values in function call.

Terms of use

This script is absolutely free for use for any purpose as long as the copyright statement remains unchanged in the comments of javascript code.

Redistributing or Mirroring of this script and it's documentation on any public domain or other collections requires my special permission. Please contact Virtual_Max to obtain permission.


©Virtual_Max 2001
Version date: Jan, 29, 2001